CTI – Compound Topographic Index (Topographic Wetness Index)
CTI, also known as the Topographic Wetness Index (TWI), combines upslope contributing area and local slope to indicate potential zones of water accumulation, soil moisture and wetness.
What does CTI measure?
CTI quantifies how much water is likely to accumulate at a given location, considering both the amount of upslope area draining into it and the local terrain slope. Large upslope area and gentle slope → higher wetness potential.
- Mapping potential wet areas and saturated zones.
- Soil moisture and runoff generation analysis.
- Hydrological and erosion modelling.
- Supporting habitat, soil and land-use suitability studies.
Note: CTI is highly sensitive to DEM quality, resolution and the flow-accumulation algorithm used.
CTI formula
CTI = ln( a / tan β )
where:
- a = specific upslope contributing area (m² per m of contour).
- β = local slope angle in radians.
In practice, a is derived from a flow accumulation raster multiplied by pixel area, and β comes from the DEM slope.
Required inputs
DEM & hydrological layers
| Input | Description / source |
|---|---|
| DEM | SRTM, ALOS, COPERNICUS DEM, LiDAR DEM, etc. |
| Flow accumulation | Computed from DEM (D8, D∞, or other flow-routing) |
| Slope (β) | Derived from DEM (in degrees or radians) |
| Pixel area | Used to convert flow count to contributing area (m²) |
Tip: run sink filling / hydrological conditioning on the DEM before computing flow accumulation and CTI.
Interpreting CTI values
| CTI (relative) | Interpretation |
|---|---|
| Low | Ridges, steep slopes – low wetness potential |
| Moderate | Mid-slope positions – intermediate wetness |
| High | Valley bottoms, hollows – high wetness / saturation likelihood |
CTI is a relative index; thresholds should be calibrated for each landscape and DEM resolution.
Computing CTI in Google Earth Engine (conceptual workflow)
- Load and preprocess a DEM (projection, sinks, etc.).
- Compute slope (β) from the DEM.
- Compute or import a flow-accumulation raster.
- Convert flow accumulation to specific contributing area a (m² per m).
- Compute CTI = ln( a / tan β ).
// CTI – Compound Topographic Index (conceptual example) in Google Earth Engine
var roi = /* your geometry here */;
// 1. DEM (example: SRTM)
var dem = ee.Image('USGS/SRTMGL1_003').clip(roi);
// Optional: reproject DEM to a projected CRS (e.g., UTM) with metre units
var demProj = dem.reproject({
crs: 'EPSG:32636', // change to your UTM zone
scale: 30
});
// 2. Slope in degrees, then radians
var slopeDeg = ee.Terrain.slope(demProj);
var slopeRad = slopeDeg.multiply(Math.PI / 180.0);
// 3. Flow accumulation (placeholder)
// In GEE, you can import a flow-accumulation raster from:
// - external processing (SAGA / TauDEM / Whitebox)
// - or community / user assets
// Here we assume you have an image called 'flowAccum' (unitless count).
var flowAccum = ee.Image('users/your_username/flow_accum_example')
.clip(roi);
// 4. Specific contributing area (a)
// Pixel area in m²
var pixelArea = ee.Image.pixelArea(); // m²
// Contributing area (m²) = flowAccum * pixelArea
var contribArea = flowAccum.multiply(pixelArea);
// For specific catchment area per unit contour length,
// some workflows divide by pixel size; here we keep it simple:
var a = contribArea.max(1); // avoid zeros
// 5. CTI = ln( a / tan(beta) )
var tanSlope = slopeRad.tan().max(0.001); // avoid division by zero
var cti = a.divide(tanSlope).log().rename('CTI');
// Visualisation (relative index)
Map.centerObject(roi, 10);
Map.addLayer(cti, {
min: 4, max: 16,
palette: ['#0b1120','#1d4ed8','#22c55e','#eab308','#f97316','#7f1d1d']
}, 'CTI - Compound Topographic Index');
// Optional export
Export.image.toDrive({
image: cti,
description: 'CTI_example',
region: roi,
scale: 30,
maxPixels: 1e13
});
Important: this script assumes you already have a flow accumulation raster as an asset. Use external hydrology tools (SAGA, TauDEM, Whitebox, etc.) to generate flow accumulation from your DEM, then import it into GEE and plug it into this CTI formula while keeping this HTML page in your indices library.